/**
 * 
 */
package modelscsw.restaurant.android.platform.call;

import modelscsw.restaurant.android.RestaurantApplication;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;

/**
 * @author Leonardo E. Ibarra Becerra
 * 
 */
public class AndroidLevel1Caller implements ICaller {

	public void callPhone(String number) {
		try {
			Intent callIntent = new Intent(Intent.ACTION_CALL);
			callIntent.setData(Uri.parse("tel:" + number));
			RestaurantApplication.getAppContext().startActivity(callIntent);
		} catch (ActivityNotFoundException activityException) {
			Log.e("AndoridLevel1Caller", "Call failed", activityException);
		}
	}

}
